//
//  ViewControlM.h
//  
//  jhf
//
//  Created by Mac on 2020/7/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ViewControlM : NSObject

//MARK: - 背景颜色
@property (nonatomic, copy) NSString *vBgColorHex;

@property (nonatomic, strong) UIColor *vBgColor;

//MARK: - 边框
@property (nonatomic, assign) BOOL vLayer;
@property (nonatomic, assign) CGFloat vLayerWidth;
@property (nonatomic, copy) NSString *vLayerColorHex;

//MARK: - 圆角
@property (nonatomic, assign) BOOL vMasksToBounds;
@property (nonatomic, assign) CGFloat vRadius;

//MARK: - 约束
// 高度 默认0 不设置
@property (nonatomic, assign) CGFloat vHeightCons;
@property (nonatomic, assign) CGFloat vMaxHeightCons;
@property (nonatomic, assign) CGFloat vMinHeightCons;

// 宽度 默认0 不设置
@property (nonatomic, assign) CGFloat vWidthCons;
@property (nonatomic, assign) CGFloat vMaxWidthCons;
@property (nonatomic, assign) CGFloat vMinWidthCons;

// 其它约束
@property (nonatomic, assign) CGFloat vTopCons;
@property (nonatomic, assign) CGFloat vLeftCons;
@property (nonatomic, assign) CGFloat vBottomCons;
@property (nonatomic, assign) CGFloat vRightCons;

// 中心约束
@property (nonatomic, assign) CGFloat vCenterYCons;
@property (nonatomic, assign) CGFloat vCenterXCons;

//MARK: - 其它
// 一般 0 1 2 3 <上左下右>
@property (nonatomic, assign) NSInteger vLocation;

// 所在容器宽度
@property (nonatomic, assign) CGFloat containerWidthCons;

// 计算的frame
@property (assign, nonatomic) CGRect frame;

// 附加信息
@property id extraInfo;

- (void)controlV:(UIView *)v;

+ (ViewControlM *)defaultViewControl;


@end

NS_ASSUME_NONNULL_END
